package jp.ne.hatena.d.digitalsoul.warikan.repositories

import jp.ne.hatena.d.digitalsoul.warikan.inject._
import jp.ne.hatena.d.digitalsoul.warikan.models._
import jp.ne.hatena.d.digitalsoul.warikan.repositories.impl._

object SlopeRepository {
	
	val repository:SlopeRepositoryImpl = Injector.getInstance(classOf[SlopeRepositoryImpl])
	
	def nextId:String = repository.nextId.toString
	
	def add(slope:Slope) = repository.add(slope)
		
	def forSlopeId(id:String):Option[Slope] = repository.forSlopeId(id)
		
	def forAll:List[Slope] = repository.forAll
	
	def weightOf(slopeId:String, role:String):Int = repository.weightOf(slopeId, role)
	
}